package com.qianfeng.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 映射数据库挂号表
 */
public class Registration {
    private Integer rId;//挂号ID
    private Integer rSsno;//社保号
    private String rName;//姓名
    private String rCard;//身份证号
    private String rGender;//性别
    private Integer rAge;//年龄
    private String rJob;//职业
    private String rTel;//联系电话
    private Integer rFirst;//初复诊0初诊1复诊
    private Integer deptId;//所挂科室
    private Integer dId;//指定医生
    private Integer dSelfpay;//是否自费 0自费1免费
    private Double rMoney;//挂号费
    private Integer rStatus;//挂号状态 0挂号 1已住院 2已出院 3已退号
    private String rMark;//备注
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rTime;//挂号时间
    private Department department;//关联部门
    private Doctor doctor;//关联医生表

    @Override
    public String toString() {
        return "Registration{" +
                "rId=" + rId +
                ", rSsno=" + rSsno +
                ", rName='" + rName + '\'' +
                ", rCard='" + rCard + '\'' +
                ", rGender='" + rGender + '\'' +
                ", rAge=" + rAge +
                ", rJob='" + rJob + '\'' +
                ", rTel='" + rTel + '\'' +
                ", rFirst=" + rFirst +
                ", deptId=" + deptId +
                ", dId=" + dId +
                ", dSelfpay=" + dSelfpay +
                ", rMoney=" + rMoney +
                ", rStatus=" + rStatus +
                ", rMark='" + rMark + '\'' +
                ", rTime=" + rTime +
                ", department=" + department +
                ", doctor=" + doctor +
                '}';
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Integer getrSsno() {
        return rSsno;
    }

    public void setrSsno(Integer rSsno) {
        this.rSsno = rSsno;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public String getrCard() {
        return rCard;
    }

    public void setrCard(String rCard) {
        this.rCard = rCard;
    }

    public String getrGender() {
        return rGender;
    }

    public void setrGender(String rGender) {
        this.rGender = rGender;
    }

    public Integer getrAge() {
        return rAge;
    }

    public void setrAge(Integer rAge) {
        this.rAge = rAge;
    }

    public String getrJob() {
        return rJob;
    }

    public void setrJob(String rJob) {
        this.rJob = rJob;
    }

    public String getrTel() {
        return rTel;
    }

    public void setrTel(String rTel) {
        this.rTel = rTel;
    }

    public Integer getrFirst() {
        return rFirst;
    }

    public void setrFirst(Integer rFirst) {
        this.rFirst = rFirst;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public Integer getdSelfpay() {
        return dSelfpay;
    }

    public void setdSelfpay(Integer dSelfpay) {
        this.dSelfpay = dSelfpay;
    }

    public Double getrMoney() {
        return rMoney;
    }

    public void setrMoney(Double rMoney) {
        this.rMoney = rMoney;
    }

    public Integer getrStatus() {
        return rStatus;
    }

    public void setrStatus(Integer rStatus) {
        this.rStatus = rStatus;
    }

    public String getrMark() {
        return rMark;
    }

    public void setrMark(String rMark) {
        this.rMark = rMark;
    }

    public Date getrTime() {
        return rTime;
    }

    public void setrTime(Date rTime) {
        this.rTime = rTime;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public Registration(Integer rId, Integer rSsno, String rName, String rCard, String rGender, Integer rAge, String rJob, String rTel, Integer rFirst, Integer deptId, Integer dId, Integer dSelfpay, Double rMoney, Integer rStatus, String rMark, Date rTime, Department department, Doctor doctor) {
        this.rId = rId;
        this.rSsno = rSsno;
        this.rName = rName;
        this.rCard = rCard;
        this.rGender = rGender;
        this.rAge = rAge;
        this.rJob = rJob;
        this.rTel = rTel;
        this.rFirst = rFirst;
        this.deptId = deptId;
        this.dId = dId;
        this.dSelfpay = dSelfpay;
        this.rMoney = rMoney;
        this.rStatus = rStatus;
        this.rMark = rMark;
        this.rTime = rTime;
        this.department = department;
        this.doctor = doctor;
    }

    public Registration() {
    }
}
